<div class="" style="top:10px;    margin: 10px;">
    <form action="{:search_url(['status','name','e_time','s_time'])}" method="GET" pjax-search="" id="export_form">
        <input type="hidden" name="page" value="1" />
        <div class="input-group input-group-sm">
            <select class="select2" name="status" style="width: 100px;display: inline-block;margin: 0px 5px;padding-left: 10px;padding-right: 10px;border: 1px solid #ccc;height: 34px;border-radius: 3px;">
                <option value="-1">全部状态</option>
                <option value="0"{if condition="input('get.status',-1)== 0"}selected="selected"{/if}>未报名</option>
                <option value="1"{if condition="input('get.status',-1)== 1"}selected="selected"{/if}>已报名</option>
            </select>
            <label style="margin-bottom:0;" for="">开始时间</label>
                <input class="timepicker" name="s_time" value="{:input('get.s_time')}" placeholder="开始时间"  style="margin: 0px 5px;padding-left: 10px;border: 1px solid #ccc;height: 34px;border-radius: 3px;" AUTOCOMPLETE="off">
            <label style="margin-bottom: 0;" for="">结束时间</label>
                <input class="timepicker" name="e_time" value="{:input('get.e_time')}" placeholder="结束时间" style="margin: 0px 5px;padding-left: 10px;border: 1px solid #ccc;height: 34px;border-radius: 3px;" AUTOCOMPLETE="off">
            <script type="text/javascript">
                $(function(){
                    var now = new Date();
                    var currentYear=now.getFullYear();
                    var startDate = new Date(currentYear,0,1);
                    var endDate = new Date(currentYear+1,0,1);
                    $('.timepicker').datetimepicker({
                        format: "{$timepickerFormat | default='YYYY-MM-DD HH:mm:ss'}",   //YYYY-MM-DD HH:mm:ss
                        locale: moment.locale('zh-cn'),
                        // minDate:startDate,
                        maxDate : endDate
                    });
                })
            </script>
            <input type="text" style="display: inline-block;width: 200px;margin: 0px 5px;padding-left: 10px;border: 1px solid #ccc;height: 34px;border-radius: 3px;" name="name" class="" value="{:input('get.name')}" placeholder="{$placeHolderSearch|default='任务名称'}" autocomplete="off" />
            <div class="input-group-btn" style="display: inline-block;">
                <button type="submit" class="btn btn-default sreachs" style="height:34px;border-radius:3px;position:relative;top:-1px;">
                    <i class="fa fa-search"></i> 查询
                </button>
            </div>
        </div>
    </form>
</div>

